package chen.web.config;

public class RegisterConfig {

	private final boolean sendSuccessEmail;
	private final String successEmailSubject;
	private final String successEmailContent;
	
	private final boolean sendVerifyEmail;
	private final String verifyEmailSubject;
	private final String verifyEmailContent;
	
	private RegisterConfig(Builder builder){
		this.sendSuccessEmail = builder.sendSuccessEmail;
		this.successEmailSubject = builder.successEmailSubject;
		this.successEmailContent = builder.successEmailContent;
		this.sendVerifyEmail = builder.sendVerifyEmail;
		this.verifyEmailSubject = builder.verifyEmailSubject;
		this.verifyEmailContent = builder.verifyEmailContent;
	}
	
	public static class Builder{
		private boolean sendSuccessEmail;
		private String successEmailSubject;
		private String successEmailContent;
		
		private boolean sendVerifyEmail;
		private String verifyEmailSubject;
		private String verifyEmailContent;
		
		public RegisterConfig build(){
			return new RegisterConfig(this);
		}
	}
	
}
